Microchip Technology /ATSAML22J16A /AC /COMPCTRL0

Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text

Interpret as COMPCTRL0

31 2827 2423 2019 1615 1211 87 43 0 0 0 0 0 0 0 0 00 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 (ENABLE)ENABLE 0 (SINGLE)SINGLE 0 (TOGGLE)INTSEL 0 (RUNSTDBY)RUNSTDBY 0 (PIN0)MUXNEG 0 (PIN0)MUXPOS 0 (SWAP)SWAP 0 (LOW)SPEED 0 (HYSTEN)HYSTEN 0 (HYST50)HYST 0 (OFF)FLEN0 (OFF)OUT

SPEED=LOW, OUT=OFF, FLEN=OFF, MUXNEG=PIN0, MUXPOS=PIN0, HYST=HYST50, INTSEL=TOGGLE

Description

Comparator Control n

Fields

ENABLE

Enable

SINGLE

Single-Shot Mode

INTSEL

Interrupt Selection

0 (TOGGLE): Interrupt on comparator output toggle

1 (RISING): Interrupt on comparator output rising

2 (FALLING): Interrupt on comparator output falling

3 (EOC): Interrupt on end of comparison (single-shot mode only)

RUNSTDBY

Run in Standby

MUXNEG

Negative Input Mux Selection

0 (PIN0): I/O pin 0

1 (PIN1): I/O pin 1

2 (PIN2): I/O pin 2

3 (PIN3): I/O pin 3

4 (GND): Ground

5 (VSCALE): VDD scaler

6 (BANDGAP): Internal bandgap voltage

7 (DAC): DAC output

MUXPOS

Positive Input Mux Selection

0 (PIN0): I/O pin 0

1 (PIN1): I/O pin 1

2 (PIN2): I/O pin 2

3 (PIN3): I/O pin 3

4 (VSCALE): VDD Scaler

SWAP

Swap Inputs and Invert

SPEED

Speed Selection

0 (LOW): Low speed

1 (MEDLOW): Medium low speed

2 (MEDHIGH): Medium high speed

3 (HIGH): High speed

HYSTEN

Hysteresis Enable

HYST

Hysteresis Level

0 (HYST50): 50mV

1 (HYST70): 70mV

2 (HYST90): 90mV

3 (HYST110): 110mV

FLEN

Filter Length

0 (OFF): No filtering

1 (MAJ3): 3-bit majority function (2 of 3)

2 (MAJ5): 5-bit majority function (3 of 5)

OUT

Output

0 (OFF): The output of COMPn is not routed to the COMPn I/O port

1 (ASYNC): The asynchronous output of COMPn is routed to the COMPn I/O port

2 (SYNC): The synchronous output (including filtering) of COMPn is routed to the COMPn I/O port

Links

() ()